/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ongmanager.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author wbettencourt
 */
@Embeddable
public class StatusOngPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "IdStatus")
    private int idStatus;
    @Basic(optional = false)
    @Column(name = "IdOng")
    private int idOng;

    public StatusOngPK() {
    }

    public StatusOngPK(int idStatus, int idOng) {
        this.idStatus = idStatus;
        this.idOng = idOng;
    }

    public int getIdStatus() {
        return idStatus;
    }

    public void setIdStatus(int idStatus) {
        this.idStatus = idStatus;
    }

    public int getIdOng() {
        return idOng;
    }

    public void setIdOng(int idOng) {
        this.idOng = idOng;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idStatus;
        hash += (int) idOng;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof StatusOngPK)) {
            return false;
        }
        StatusOngPK other = (StatusOngPK) object;
        if (this.idStatus != other.idStatus) {
            return false;
        }
        if (this.idOng != other.idOng) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ongmanager.model.StatusOngPK[ idStatus=" + idStatus + ", idOng=" + idOng + " ]";
    }
    
}
